<%@ page import="aca.Turma" %>
<!DOCTYPE html>
<html>
	<head>
		<meta name="layout" content="main">
		<g:set var="entityName" value="${message(code: 'turma.label', default: 'Turma')}" />
		<title><g:message code="Solicitações" /></title>
	</head>
	<body>
	
		<a href="#view-requests-monitor" class="skip" tabindex="-1"><g:message code="default.link.skip.label" default="Skip to content&hellip;"/></a>
		<div class="nav" role="navigation">
			<ul>
				<li><a class="home" href="${createLink(uri: '/user/index')}"><g:message code="default.home.label"/></a></li>
			</ul>
		</div>
		<div id="show-req" class="content scaffold-show" role="main">
			<h1><g:message code="Solicitações" /></h1>
			<g:if test="${flash.message}">
			<div class="message" role="status">${flash.message}</div>
			</g:if>
			<ol class="property-list turma">
				
				<g:if test="${turmaInstance?.solicitacoesMonitores}">
				<li class="fieldcontain">
					<g:form controller="turma" action="submited_requests_monitor" id="${turmaInstance.id}">  						
  						<table class='display'>
  							<tr>
    							<th>solicitante</th>
    							<th>aceitar</th>
								<th>rejeitar</th>
							    <th>verificar depois</th>
  							</tr>
						  	<g:each in="${turmaInstance.solicitacoesMonitores}" status="i" var="solicitacao">
							    <tr>
							      <td>${solicitacao}</td>
							      <td><g:radio name="box${i}" value="${solicitacao.id}_1" /></td>
							      <td><g:radio name="box${i}" value="${solicitacao.id}_2" /></td>
							      <td><g:radio name="box${i}" value="${solicitacao.id}_3" checked="${true}" /></td>						
						    	</tr>
						  	</g:each>
						</table>
  			</ol>
  						<fieldset class="buttons">
  						<g:submitButton name="submit" value="Confirma"/>
  						</fieldset>
					</g:form>
					
				</li>
				</g:if>	
			
		</div>
	</body>
</html>